import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';

import { PersonalInfoPage } from './personal-info.page';

const routes: Routes = [
  {
    path: '',
    component: PersonalInfoPage
  },
  {
    path: 'user-name',
    loadChildren: () => import('./user-name/user-name.module').then( m => m.UserNamePageModule)
  },
  {
    path: 'id-card',
    loadChildren: () => import('./id-card/id-card.module').then( m => m.IdCardPageModule)
  },
  {
    path: 'billing-address',
    loadChildren: () => import('./billing-address/billing-address.module').then( m => m.BillingAddressPageModule)
  }
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule],
})
export class PersonalInfoPageRoutingModule {}
